package demo1;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 87111
 * Date: 2025-09-03
 * Time: 14:52
 */
public class Test1 {
    public static void main(String[] args) {
        MySingleList mySingleList = new MySingleList();
        mySingleList.createLinkedList();
        mySingleList.display();//11 22 33 44
        mySingleList.display();//9 11 22 33 44
        System.out.println(mySingleList.contains(9));
//        mySingleList.remove(9);
//        mySingleList.display();
        mySingleList.addLast(9);
        mySingleList.addIndex(2,9);//9 11 9 33 44 9
        mySingleList.display();
        mySingleList.removeAllKey(9);
        mySingleList.display();

    }
}
